document.addEventListener('DOMContentLoaded', function () {
  chrome.runtime.onMessage.addListener(function (message, sender, sendResponse) {
      if (message.type === 'updatePath') {
          document.getElementById('element-path').textContent = message.path;
      }
  });
});
